package com.jiedeng.dao;

import com.jiedeng.model.SysMsgHandle;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;
import java.util.List;

/**
 * Created by qinyu on 2018/2/5.
 */
public interface ISysMsgHandleRepository extends JpaRepository<SysMsgHandle, Long> {

    List<SysMsgHandle> findByMsgId(Long msgId);
    @Modifying
    @Transactional
    void deleteByMsgId(Long msgId);
}
